home *** CD-ROM | disk | FTP | other *** search
- Path: holly.ACNS.ColoState.EDU!not-for-mail
- From: corbyh@holly.ACNS.ColoState.EDU (Corby S. Hudnall)
- Newsgroups: comp.lang.c++
- Subject: Re: Running a .exe or bat using C language.
- Date: 4 Mar 1996 11:39:35 -0700
- Organization: Colorado State University, Fort Collins, CO 80523
- Message-ID: <4hfdd7$5kts@holly.ACNS.ColoState.EDU>
- References: <313BA0C2.989@soho.ios.com>
- NNTP-Posting-Host: holly.acns.colostate.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Benjamin Chi (benjachi@soho.ios.com) wrote:
- : Does anyone know how I can write a program that will run another
- : excutable file? such as .exe .bat .com using C/C++/java?
-
- Look into the system(), spawn(), and exec() family of functions.
-
- // ------------ BEGIN SIGNATURE ---------------
- #include <iostream.h>
- void main()
- {
- cout<<"\aName:\tCorby S. Hudnall\n";
- cout<<"School:\tColorado State University\n";
- cout<<"EMail\tcorbyh@holly.colostate.edu\n";
- cout<<"URL\thttp://holly.colostate.edu/~corbyh/\n";
- }
- // ------------- END SIGNATURE ----------------
-
-